package Operation;

import book.Book;
import book.Bookshelf;

public class displaytion implements IoOperation {
    public void work(Bookshelf bookshelf){
        System.out.println("正在显示图书！！");
        int current = bookshelf.number;
        for (int i = 0; i < current; i++){
            Book book = bookshelf.getBooks(i);
            System.out.println(book);
        }
    }
}
